# $Id: PKGBUILD 88259 2013-04-15 10:49:18Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org

pkgname=umleditor
pkgver=3.5.0
pkgrel=1
pkgdesc="UML/INTERLIS-Editor"
arch=('any')
url="http://www.umleditor.org/"
license=('LGPL')
depends=('java-runtime' 'interlis-compiler')
makedepends=('unzip')
source=(http://www.umleditor.org/download/$pkgname-$pkgver.zip 'umleditor')
md5sums=('1628c9666eac0d71be9b5824ea6f8170'
         'c3a61e0c0b11efefc2d1b70c2e3f1aa9')

package() {
  install -d "$pkgdir/opt/$pkgname"
  cp $srcdir/$pkgname-$pkgver/*.jar "$pkgdir/opt/$pkgname"
  cp -r "$srcdir/$pkgname-$pkgver/xmirose" "$pkgdir/opt/$pkgname"
  install -D -m755 "$srcdir/umleditor" "$pkgdir/usr/bin/umleditor"
}
